package com.myphoto.base.util;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@Api(value="分页查询参数类")
public class PageParam {

    @NotNull(message = "当前页不能为空！")
    @ApiModelProperty(value="当前页",dataType ="int",required = true)
    private int current;

    @NotNull(message = "每页记录数不能为空！")
    @ApiModelProperty(value="每页记录数",dataType ="int",required = true)
    private int limit;
}
